

export function getGpts() {
  const data = [
    { num: 1, param: 12020, fuhao: '28800', type: '右旋' },
    { num: 2, param: 11730, fuhao: '28800', type: '左旋' },
    { num: 3, param: 11790, fuhao: '28800', type: '左旋' },
    { num: 4, param: 11840, fuhao: '28800', type: '左旋' },
    { num: 5, param: 11920, fuhao: '28800', type: '左旋' },
    { num: 6, param: 11960, fuhao: '28800', type: '左旋' },
    { num: 7, param: 12000, fuhao: '28800', type: '左旋' },
    { num: 8, param: 12040, fuhao: '30000', type: '左旋' },
    { num: 9, param: 12080, fuhao: '30000', type: '左旋' },
    { num: 10, param: 12120, fuhao: '28800', type: '左旋' },
    { num: 11, param: 12160, fuhao: '30000', type: '左旋' },
    { num: 12, param: 11750, fuhao: '30000', type: '右旋' },
    { num: 13, param: 11810, fuhao: '30000', type: '右旋' },
    { num: 14, param: 11860, fuhao: '30000', type: '右旋' },
    { num: 15, param: 11900, fuhao: '30000', type: '右旋' },
    { num: 16, param: 11940, fuhao: '28800', type: '右旋' },
    { num: 17, param: 11980, fuhao: '28800', type: '右旋' },
    { num: 18, param: 12060, fuhao: '28800', type: '右旋' },
    { num: 19, param: 12100, fuhao: '28800', type: '右旋' },
    { num: 20, param: 12140, fuhao: '30000', type: '右旋' },
    { num: 21, param: 12180, fuhao: '30000', type: '右旋' },
  ]
  return data
}

export function getNineB() {
  const data = [
    { frequency: '11720', fuhao: '28800', type: '左旋', key: 0 },
    { frequency: '12020', fuhao: '28800', type: '右旋', key: 1 },
    { frequency: '11760', fuhao: '28800', type: '左旋', key: 2 },
    { frequency: '11800', fuhao: '28800', type: '左旋', key: 3 },
    { frequency: '11840', fuhao: '28800', type: '左旋', key: 4 },
    { frequency: '11920', fuhao: '28800', type: '左旋', key: 5 },
    { frequency: '11960', fuhao: '28800', type: '左旋', key: 6 },
    { frequency: '12000', fuhao: '28800', type: '左旋', key: 7 },
    { frequency: '12040', fuhao: '30000', type: '左旋', key: 8 },
    { frequency: '12080', fuhao: '30000', type: '左旋', key: 9 },
    { frequency: '12120', fuhao: '28800', type: '左旋', key: 10 },
    { frequency: '12160', fuhao: '30000', type: '左旋', key: 11 },
    { frequency: '11740', fuhao: '28800', type: '右旋', key: 12 },
    { frequency: '11780', fuhao: '28800', type: '右旋', key: 13 },
    { frequency: '11820', fuhao: '28800', type: '右旋', key: 14 },
    { frequency: '11860', fuhao: '30000', type: '右旋', key: 15 },
    { frequency: '11900', fuhao: '30000', type: '右旋', key: 16 },
    { frequency: '11940', fuhao: '28800', type: '右旋', key: 17 },
    { frequency: '11980', fuhao: '28800', type: '右旋', key: 18 },
    { frequency: '12060', fuhao: '28800', type: '右旋', key: 19 },
    { frequency: '12100', fuhao: '28800', type: '右旋', key: 20 },
    { frequency: '12140', fuhao: '30000', type: '右旋', key: 21 },
    { frequency: '12180', fuhao: '30000', type: '右旋', key: 22 },
  ]
  return data
}

export function getNine() {
  const data = [
    { frequency: '12020', fuhao: '28800', type: '右旋', key: 0 },
    { frequency: '11730', fuhao: '28800', type: '左旋', key: 1 },
    { frequency: '11790', fuhao: '28800', type: '左旋', key: 2 },
    { frequency: '11840', fuhao: '28800', type: '左旋', key: 3 },
    { frequency: '11920', fuhao: '28800', type: '左旋', key: 4 },
    { frequency: '11960', fuhao: '28800', type: '左旋', key: 5 },
    { frequency: '12000', fuhao: '28800', type: '左旋', key: 6 },
    { frequency: '12040', fuhao: '30000', type: '左旋', key: 7 },
    { frequency: '12080', fuhao: '30000', type: '左旋', key: 8 },
    { frequency: '12120', fuhao: '28800', type: '左旋', key: 9 },
    { frequency: '12160', fuhao: '30000', type: '左旋', key: 10 },
    { frequency: '11750', fuhao: '30000', type: '右旋', key: 11 },
    { frequency: '11810', fuhao: '30000', type: '右旋', key: 12 },
    { frequency: '11860', fuhao: '30000', type: '右旋', key: 13 },
    { frequency: '11900', fuhao: '30000', type: '右旋', key: 14 },
    { frequency: '11940', fuhao: '28800', type: '右旋', key: 15 },
    { frequency: '11980', fuhao: '28800', type: '右旋', key: 16 },
    { frequency: '12060', fuhao: '28800', type: '右旋', key: 17 },
    { frequency: '12100', fuhao: '28800', type: '右旋', key: 18 },
    { frequency: '12140', fuhao: '30000', type: '右旋', key: 19 },
    { frequency: '12180', fuhao: '30000', type: '右旋', key: 20 },
  ]
  return data
}

var timer = null
export function getTimer() {
  return timer
}
export function setTimer(val) {
  timer = val
}
var isMount = false
export function setMonut(val) {
  isMount = val
}
export function getMount() {
  return isMount
}
var isLogin = false
export function getLogin() {
  return isLogin
}
export function setLogin(val) {
  isLogin = true
}

//调整路径，以名称结束
export function delDirString(str) {
  // console.log(str)
  var arrs = str.split('/')
  // console.log(arrs)
  var tmp = ''
  for (var i = 1; i < arrs.length - 1; i++) {
    tmp = tmp + '/' + arrs[i]
  }
  // console.log('最终结果', tmp)
  return tmp
}
//调整路径，以‘/’结束
export function delDirStringShow(str) {
  // console.log(str)
  var arrs = str.split('/')
  // console.log(arrs)
  var tmp = ''
  for (var i = 1; i < arrs.length - 2; i++) {
    tmp = tmp + '/' + arrs[i]
  }
  // console.log('最终结果', tmp)
  return tmp + '/'
}

